<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php session_start();
$Emails=$_POST['pusername'];
$link = mysql_connect('cash2uca.ipagemysql.com', 'cash2uca', 'actW3740!@#$'); 
if (!$link) { 
    die('Could not connect: ' . mysql_error()); 
} 
mysql_select_db(cash2uca);
$sql = "SELECT UserName , Password FROM AdminTables WHERE UserName= '$_POST[pusername]'";
$sqlresult=mysql_query($sql);
$row = mysql_fetch_array($sqlresult);
$_SESSION['username']=$row['UserName'];
$_SESSION['usrpwd']=$row['Password'];


if($_SESSION['username']!=$_POST['pusername']||$_SESSION['usrpwd']!=md5($_POST['oldpwd']))
{echo "Sorry, your username and old password are not matched in our system";
exit();
}

$sqlinsert="UPDATE AdminTables SET Password=md5('$_POST[newpwd]') WHERE UserName='".$_SESSION['username']."'";

$resultin=mysql_query($sqlinsert);

?>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cash2u.ca: Payday loan online application processing</title>
<META NAME="Keywords" CONTENT="payday loan, payday cash advance, online, payday advance, payday cash loan, payday loans, cash advance, paycheque loans, short term,
	money mart, money here, quick cash,check,cashing,easy,tax, bill,payment,currency,card,credit,Easy Cash Advances, Internet Payday loans, Payroll Advance, Payday Loan Services,
	Online Payday Advances, Online Payday Loan Provider, Pay Day, Canada">
<META NAME="Description" CONTENT=Cash2u.ca offers online payday loans and cash advance for Canadians">

<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script>
<script src="./css/jquery.maskedinput.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./css/main_style.css"/>
<link rel="stylesheet" type="text/css" href="./css/index.css"/>
</head>
<body>
<div id="maincontainer">

<div id="headsection">
<div id="headback">
<br/><br/><br/><h1><a style="color:white;" href="apply.php">Cash to you</a></h1><p id="headpara"><a style="color:white;" href="apply.php">Simple Easy Fast - Your payday loan</a></p>
</div>
</div>

<table cellspacing="4" cellpadding="1" border="0" style="margin:5px;height:50px;width:740px;background-color:#084c8d;border:1px solid #e5e5e5;color:white;font-size:110%;font-weight:bold;">
<tr><td width="20"></td>
<td width="90" align="center"><a class="headlink" href="cash2u.php">Login</a></td>
<td width="90" align="center"></td>
<td width="130" align="center"></td>
<td width="110" align="center"></td>
<td width="90" align="center"></td>
<td width="90" align="center"></td>
<td width="140"></td>
</tr>
</table>

<div id="content">
	<div id="NewCust" class="NewCust">Employee Password Changed</div>

    	<form name="application" method="post" action="">
	<table>	
	<tr>
	<td width="740" align="left">Your New Password has been changed successfully

		</td>
		</tr>

	</table>

	</form>

<div id="footer">
<div id="imlinks"><b><strong>Copyright &#169 2011 Cash2u.ca All rights reserved</strong></b></div>
</div>

</div>
</body>
</html>





























































































































































